package com.yonyou.brigade.third_parties.bfjr.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.service.IService;
import com.yonyou.brigade.order_center.model.ThirdResult;
import com.yonyou.brigade.third_parties.bfjr.model.BfjrDept;

public interface IBfjrDeptService extends IService<BfjrDept> {

    /**
     * 同步一级部门
     * @param tenant
     * @param org
     * @param orgName
     * @param config
     */
    public void sysOrgDept(String tenant, String org, String orgName, JSONObject config);



    /**
     * 同步部门
     * @param dept
     * @param config
     * @param operationType
     * @return
     */
    ThirdResult syncDept(BfjrDept dept, JSONObject config, String operationType);
}
